home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dormhr.z / dormhr
Encoding:
Text File  |  2002-10-03  |  5.5 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))                                                          DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DORMHR - overwrite the general real M-by-N matrix C with  SIDE = 'L' SIDE
  10.      = 'R' TRANS = 'N'
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE DORMHR( SIDE, TRANS, M, N, ILO, IHI, A, LDA, TAU, C, LDC,
  14.                         WORK, LWORK, INFO )
  15.  
  16.          CHARACTER      SIDE, TRANS
  17.  
  18.          INTEGER        IHI, ILO, INFO, LDA, LDC, LWORK, M, N
  19.  
  20.          DOUBLE         PRECISION A( LDA, * ), C( LDC, * ), TAU( * ), WORK( *
  21.                         )
  22.  
  23. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  24.      These routines are part of the SCSL Scientific Library and can be loaded
  25.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  26.      directs the linker to use the multi-processor version of the library.
  27.  
  28.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  29.      4 bytes (32 bits). Another version of SCSL is available in which integers
  30.      are 8 bytes (64 bits).  This version allows the user access to larger
  31.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  32.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  33.      only one of the two versions; 4-byte integer and 8-byte integer library
  34.      calls cannot be mixed.
  35.  
  36. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  37.      DORMHR overwrites the general real M-by-N matrix C with SIDE = 'L' SIDE =
  38.      'R' TRANS = 'N': Q * C C * Q TRANS = 'T':      Q**T * C       C * Q**T
  39.  
  40.      where Q is a real orthogonal matrix of order nq, with nq = m if SIDE =
  41.      'L' and nq = n if SIDE = 'R'. Q is defined as the product of IHI-ILO
  42.      elementary reflectors, as returned by DGEHRD:
  43.  
  44.      Q = H(ilo) H(ilo+1) . . . H(ihi-1).
  45.  
  46.  
  47. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  48.      SIDE    (input) CHARACTER*1
  49.              = 'L': apply Q or Q**T from the Left;
  50.              = 'R': apply Q or Q**T from the Right.
  51.  
  52.      TRANS   (input) CHARACTER*1
  53.              = 'N':  No transpose, apply Q;
  54.              = 'T':  Transpose, apply Q**T.
  55.  
  56.      M       (input) INTEGER
  57.              The number of rows of the matrix C. M >= 0.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))                                                          DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N       (input) INTEGER
  75.              The number of columns of the matrix C. N >= 0.
  76.  
  77.      ILO     (input) INTEGER
  78.              IHI     (input) INTEGER ILO and IHI must have the same values as
  79.              in the previous call of DGEHRD. Q is equal to the unit matrix
  80.              except in the submatrix Q(ilo+1:ihi,ilo+1:ihi).  If SIDE = 'L',
  81.              then 1 <= ILO <= IHI <= M, if M > 0, and ILO = 1 and IHI = 0, if
  82.              M = 0; if SIDE = 'R', then 1 <= ILO <= IHI <= N, if N > 0, and
  83.              ILO = 1 and IHI = 0, if N = 0.
  84.  
  85.      A       (input) DOUBLE PRECISION array, dimension
  86.              (LDA,M) if SIDE = 'L' (LDA,N) if SIDE = 'R' The vectors which
  87.              define the elementary reflectors, as returned by DGEHRD.
  88.  
  89.      LDA     (input) INTEGER
  90.              The leading dimension of the array A.  LDA >= max(1,M) if SIDE =
  91.              'L'; LDA >= max(1,N) if SIDE = 'R'.
  92.  
  93.      TAU     (input) DOUBLE PRECISION array, dimension
  94.              (M-1) if SIDE = 'L' (N-1) if SIDE = 'R' TAU(i) must contain the
  95.              scalar factor of the elementary reflector H(i), as returned by
  96.              DGEHRD.
  97.  
  98.      C       (input/output) DOUBLE PRECISION array, dimension (LDC,N)
  99.              On entry, the M-by-N matrix C.  On exit, C is overwritten by Q*C
  100.              or Q**T*C or C*Q**T or C*Q.
  101.  
  102.      LDC     (input) INTEGER
  103.              The leading dimension of the array C. LDC >= max(1,M).
  104.  
  105.      WORK    (workspace/output) DOUBLE PRECISION array, dimension (LWORK)
  106.              On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
  107.  
  108.      LWORK   (input) INTEGER
  109.              The dimension of the array WORK.  If SIDE = 'L', LWORK >=
  110.              max(1,N); if SIDE = 'R', LWORK >= max(1,M).  For optimum
  111.              performance LWORK >= N*NB if SIDE = 'L', and LWORK >= M*NB if
  112.              SIDE = 'R', where NB is the optimal blocksize.
  113.  
  114.              If LWORK = -1, then a workspace query is assumed; the routine
  115.              only calculates the optimal size of the WORK array, returns this
  116.              value as the first entry of the WORK array, and no error message
  117.              related to LWORK is issued by XERBLA.
  118.  
  119.      INFO    (output) INTEGER
  120.              = 0:  successful exit
  121.              < 0:  if INFO = -i, the i-th argument had an illegal value
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))                                                          DDDDOOOORRRRMMMMHHHHRRRR((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SEE ALSO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.